/**
 * 
 */
package uk.co.altv.simpledb.operation;

import uk.co.altv.simpledb.Connection;

/**
 * @author niki
 *
 */
public class DomainMetadata extends Operation{

	private String domain = "";
	/**
	 * @param domain
	 */
	public DomainMetadata(String domain) {
		this.domain = domain;
		this.action = "DomainMetadata";
	}
	public String prepareStatement(Connection endpoint) {
		String statement = getIdAndAction(endpoint)
							+ appendData(Key.DOMAIN_NAME, this.domain, endpoint)
							+ doTail(endpoint);
		return statement + appendData(Key.SIGNATURE, endpoint.sign(statement), endpoint);
	}

}
